MessageTray.prototype = {
_init: function() {
- this.actor = new St.BoxLayout({ name: 'message-tray',
- reactive: true,
- track_hover: true });
+ this.actor = new St.Group({ name: 'message-tray',
+ reactive: true,
+ track_hover: true });
this.actor.connect('notify::hover', Lang.bind(this, this._onTrayHoverChanged));
this._notificationBin = new St.Bin();
- this.actor.add(this._notificationBin);
+ this.actor.add_actor(this._notificationBin);
this._notificationBin.hide();
this._notificationQueue = [];
this._notification = null;
this._summaryBin = new St.Bin({ anchor_gravity: Clutter.Gravity.NORTH_EAST });
- this.actor.add(this._summaryBin);
+ this.actor.add_actor(this._summaryBin);
this._summary = new St.BoxLayout({ name: 'summary-mode',
reactive: true,
track_hover: true });
anchor_gravity: Clutter.Gravity.NORTH_EAST,
reactive: true,
track_hover: true });
- this.actor.add(this._summaryNotificationBin);
+ this.actor.add_actor(this._summaryNotificationBin);
this._summaryNotificationBin.lower_bottom();
this._summaryNotificationBin.hide();
this._summaryNotificationBin.connect('notify::hover', Lang.bind(this, this._onSummaryNotificationHoverChanged));
GenericWorkspacesView.prototype = {
_init: function(width, height, x, y, workspaces) {
- this.actor = new St.Bin({ style_class: 'workspaces' });
- this._actor = new Clutter.Group();
+ this.actor = new St.Group({ style_class: 'workspaces' });
this.actor.connect('destroy', Lang.bind(this, this._onDestroy));
- this.actor.add_actor(this._actor);
this.actor.connect('style-changed', Lang.bind(this,
function() {
let node = this.actor.get_theme_node();
// Add workspace actors
for (let w = 0; w < global.screen.n_workspaces; w++)
- this._workspaces[w].actor.reparent(this._actor);
+ this._workspaces[w].actor.reparent(this.actor);
this._workspaces[activeWorkspaceIndex].actor.raise_top();
// Position/scale the desktop windows and their children after the
GenericWorkspacesView.prototype._init.call(this, width, height, x, y, workspaces);
this.actor.add_style_class_name('mosaic');
- this._actor.set_clip(x - Workspace.FRAME_SIZE,
- y - Workspace.FRAME_SIZE,
- width + 2 * Workspace.FRAME_SIZE,
- height + 2 * Workspace.FRAME_SIZE);
+ this.actor.set_clip(x - Workspace.FRAME_SIZE,
+ y - Workspace.FRAME_SIZE,
+ width + 2 * Workspace.FRAME_SIZE,
+ height + 2 * Workspace.FRAME_SIZE);
this._workspaces[global.screen.get_active_workspace_index()].setSelected(true);
},
// Add actors
if (newNumWorkspaces > oldNumWorkspaces)
for (let w = oldNumWorkspaces; w < newNumWorkspaces; w++)
- this._actor.add_actor(this._workspaces[w].actor);
+ this.actor.add_actor(this._workspaces[w].actor);
// Figure out the new layout
this._computeWorkspacePositions();
Lang.bind(this, this._onWindowDragEnd));
}
- this._actor.add_actor(this._newWorkspaceArea.actor);
- this._actor.add_actor(this._leftShadow);
- this._actor.add_actor(this._rightShadow);
+ this.actor.add_actor(this._newWorkspaceArea.actor);
+ this.actor.add_actor(this._leftShadow);
+ this.actor.add_actor(this._rightShadow);
this.actor.add_style_class_name('single');
- this._actor.set_clip(x, y, width, height);
+ this.actor.set_clip(x, y, width, height);
this._activeWorkspaceX = 0; // x offset of active ws while dragging
this._activeWorkspaceY = 0; // y offset of active ws while dragging
this._scroll = null;
if (newNumWorkspaces > oldNumWorkspaces) {
for (let w = oldNumWorkspaces; w < newNumWorkspaces; w++) {
- this._actor.add_actor(this._workspaces[w].actor);
+ this.actor.add_actor(this._workspaces[w].actor);
this._workspaces[w]._windowDragBeginId = this._workspaces[w].connect('window-drag-begin',
Lang.bind(this, this._onWindowDragBegin));
this._workspaces[w]._windowDragEndId = this._workspaces[w].connect('window-drag-end',